class AdviceBean {
  AdviceBean({
    this.teachingVideo,
    this.opnManual,
  });

  AdviceBean.fromJson(dynamic json) {
    if (json['teachingVideo'] != null) {
      teachingVideo = [];
      json['teachingVideo'].forEach((v) {
        teachingVideo?.add(TeachingVideo.fromJson(v));
      });
    }
    if (json['opnManual'] != null) {
      opnManual = [];
      json['opnManual'].forEach((v) {
        opnManual?.add(OpnManual.fromJson(v));
      });
    }
  }
  List<TeachingVideo>? teachingVideo;
  List<OpnManual>? opnManual;

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    if (teachingVideo != null) {
      map['teachingVideo'] = teachingVideo?.map((v) => v.toJson()).toList();
    }
    if (opnManual != null) {
      map['opnManual'] = opnManual?.map((v) => v.toJson()).toList();
    }
    return map;
  }
}

class OpnManual {
  OpnManual({
    this.codeCode,
    this.codeType,
    this.upperCode,
    this.codeName,
    this.codeValue,
    this.codeStatus,
    this.remark,
    this.teachFilePath,
  });

  OpnManual.fromJson(dynamic json) {
    codeCode = json['codeCode'];
    codeType = json['codeType'];
    upperCode = json['upperCode'];
    codeName = json['codeName'];
    codeValue = json['codeValue'];
    codeStatus = json['codeStatus'];
    remark = json['remark'];
    teachFilePath = json['teachFilePath'];
  }
  String? codeCode;
  String? codeType;
  dynamic upperCode;
  String? codeName;
  String? codeValue;
  String? codeStatus;
  String? remark;
  dynamic teachFilePath;

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['codeCode'] = codeCode;
    map['codeType'] = codeType;
    map['upperCode'] = upperCode;
    map['codeName'] = codeName;
    map['codeValue'] = codeValue;
    map['codeStatus'] = codeStatus;
    map['remark'] = remark;
    map['teachFilePath'] = teachFilePath;
    return map;
  }
}

class TeachingVideo {
  TeachingVideo({
    this.codeCode,
    this.codeType,
    this.upperCode,
    this.codeName,
    this.codeValue,
    this.codeStatus,
    this.remark,
    this.teachFilePath,
  });

  TeachingVideo.fromJson(dynamic json) {
    codeCode = json['codeCode'];
    codeType = json['codeType'];
    upperCode = json['upperCode'];
    codeName = json['codeName'];
    codeValue = json['codeValue'];
    codeStatus = json['codeStatus'];
    remark = json['remark'];
    teachFilePath = json['teachFilePath'];
  }
  String? codeCode;
  String? codeType;
  dynamic upperCode;
  String? codeName;
  String? codeValue;
  String? codeStatus;
  String? remark;
  String? teachFilePath;

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['codeCode'] = codeCode;
    map['codeType'] = codeType;
    map['upperCode'] = upperCode;
    map['codeName'] = codeName;
    map['codeValue'] = codeValue;
    map['codeStatus'] = codeStatus;
    map['remark'] = remark;
    map['teachFilePath'] = teachFilePath;
    return map;
  }
}
